package com.interceptor.impl;

import com.interceptor.MethodInterceptor;
import com.invocation.MethodInvocation;

import java.lang.reflect.InvocationTargetException;

public class AroundInterceptor implements MethodInterceptor {
    @Override
    public void invoke(MethodInvocation methodInvocation) throws InvocationTargetException, IllegalAccessException {
        System.out.println("环绕通知之前");
        methodInvocation.process();
        System.out.println("环绕通知之后");
    }
}
